POV-Ray : Newsgroups : povray.advanced-users : opposite direction of a surface. : Re: opposite direction of a surface. Server Time
28 Jul 2024 22:22:53 EDT (-0400)
  Re: opposite direction of a surface.  
From:
Date: 12 Nov 2003 22:12:32
Message: <3fb2f6a0$1@news.povray.org>
Hi Matt,

because you asked in the advanced-users group,
I assume short answers will suffice ;-)

First question:
   You are actually asking for the normal of an object at v1: use trace()
   to shoot a ray at v1 and get the normal (your v2) at this point.
   (look for trace at "6.1.4.6 Vector Functions")

Second question:
   The Advanced Tutorial ("4.2 POV-Ray SDL tutorial: A raytracer")
   should give you some hints, esp. "4.2.3 Short introduction to
   raytracing" and "4.2.7 Ray-sphere intersection"


Sputnik


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.